import request from '@/utils/request'

// 查询商品信息列表
export function listShopInfo(query) {
  return request({
    url: '/orderEat/shopInfo/list',
    method: 'get',
    params: query
  })
}

// 查询商品信息下拉选
export function dropDownList() {
  return request({
    url: '/orderEat/shopInfo/dropDownList',
    method: 'get',
  })
}


// 查询商品信息详细
export function getShopInfo(shopId) {
  return request({
    url: '/orderEat/shopInfo/' + shopId,
    method: 'get'
  })
}

// 新增商品信息
export function addShopInfo(data) {
  return request({
    url: '/orderEat/shopInfo',
    method: 'post',
    data: data
  })
}

// 修改商品信息
export function updateShopInfo(data) {
  return request({
    url: '/orderEat/shopInfo',
    method: 'put',
    data: data
  })
}

// 删除商品信息
export function delShopInfo(shopId) {
  return request({
    url: '/orderEat/shopInfo/' + shopId,
    method: 'delete'
  })
}
